/**
 * 
 */
package com.jbat.gwt.tiledmapcreator.client.activities;

import com.google.gwt.activity.shared.ActivityManager;
import com.google.gwt.activity.shared.ActivityMapper;
import com.google.inject.Inject;
import com.google.inject.Provider;
import com.google.web.bindery.event.shared.EventBus;

/**
 * ActivityManagerProvider is a boiler plate class that enables activities and places to work.
 */
public class ActivityManagerProvider implements Provider<ActivityManager> {
  private final ActivityMapper activityMapper;
  private final EventBus eventBus;

  @Inject
  public ActivityManagerProvider(ActivityMapper activityMapper, EventBus eventBus) {
    this.activityMapper = activityMapper;
    this.eventBus = eventBus;
  }

  @Override
  public ActivityManager get() {
    return new ActivityManager(activityMapper, eventBus);
  }

}
